$(document).ready(function () {

    initChart1();
})

function  initChart1() {

    var chart = echarts.init($('#demo').get(0));


    var options = {
        xAxis: {
            type: 'category',
            data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
        },
        yAxis: {
            type: 'value'
        },
        series: [{
            data: [150, 230, 224, 218, 135, 147, 260],
            type: 'line'
        }]
    };

    chart.setOption(options);

}